We should ensure Qemu and Guest use same attribute for accessing
the VGA ram, otherwise, host may hang.
This patch fixes trivial typo in 18690:
c19871b66cea.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
* which is required by vga acceleration since qemu maps shared
* vram buffer with WB.
*/
- if (mfn_valid(maddr >> PAGE_SHIFT) && phy_pte.ma == VA_MATTR_NATPAGE)
+ if (mfn_valid(maddr >> PAGE_SHIFT) && phy_pte.ma != VA_MATTR_NATPAGE)
phy_pte.ma = VA_MATTR_WB;
maddr = ((maddr & _PAGE_PPN_MASK) & PAGE_MASK) | (paddr & ~PAGE_MASK);